package com.wxzz.elearing.comment.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-05-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "QuestionsAnswersList对象", description = "")
public class CommunityQuestionsAnswersList extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "问答发布人")
    private String publishPerson;

    @ApiModelProperty(value = "问答发布人id")
    private Long publishPersonId;

    @ApiModelProperty(value = "企业id")
//    @TableField(exist = false)
    private Long enterpriseId;

    @ApiModelProperty(value = "头像")
    private String icon;

    @ApiModelProperty(value = "标题类型")
    private Integer titleType;

    @ApiModelProperty(value = "问答内容")
    private String publishContent;

    @ApiModelProperty(value = "图片地址 多个用,分隔")
    private String publishImageUrl;

    @ApiModelProperty(value = "图片地址 数组")
    @TableField(exist = false)
    private List<String> publishImageUrlList;

    @ApiModelProperty(value = "是否已采纳答案  0-否 1-是")
    private Integer isAccept;

    @ApiModelProperty(value = "已采纳的评论id")
    private String acceptId;

    @ApiModelProperty(value = "是否为草稿  0-否 1-是")
    @TableField(exist = false)
    private Integer isDraft;

}
